﻿using LVYAN.Model.AutoMation;
using LVYAN.Utils;
namespace LVYAN.Service.AIAPI
{
    /// <summary>
    /// 邀请
    /// </summary>
    public class ShareManage : BaseAPI
    {
        /// <summary>
        /// 邀请
        /// </summary>
        /// <returns></returns>
        public static void Send(RobotModel Robot, RobotRobotOther RobotOther,   string RoomName, string JinQunRenNickName, string YaoQingRenNickName,string Message,string ActivityId, string ShareType)
        {
            var content = JsonService.ToString(new
            {
                RobotName = Robot.RobotName,
                RobotCode = Robot.RobotCode,
                MacAddress = WinInfo.GetMacAddress(),
                MacIP = WinInfo.GetIP(),
                MacName = WinInfo.GetHostName(),
                RoomName,
                Message,
                ActivityId,
                JinQunRenNickName,
                YaoQingRenNickName,
                ShareType,
            });
            new LoggerService().ResponseMsgDebug("邀请", "发送消息-邀请", content);
            var result = new RequestService().PostJson($"{AIAPI}api/aichat/ShareSend", content);
            new LoggerService().ResponseMsgDebug("邀请", "接受消息-邀请", result);
        }



    }
}
